package com.zxc.project.base;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
* @author zxc_user
* @date 2021/3/2 20:42
* @version 1.0
* @description 基础通用的请求对象
**/
@Data
public class BaseRequestEntity<T> {

    //时间戳
    @NotNull(message = "timestamp不能为空")
    private Long timestamp;

    //数据
    @Valid
    @NotNull(message = "data数据不能为null")
    private T data;
}
